//
//  MonthOneTableViewCell.m
//  pb
//
//  Created by 马田成 on 2017/5/5.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "MonthOneTableViewCell.h"

@implementation MonthOneTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
//    CGFloat itemW     = DEF_SCREEN_WIDTH / 7;
//    CGFloat itemH     = DEF_SCREEN_WIDTH / 7;
//    
//    UIButton *headBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    headBtn.backgroundColor = [UIColor clearColor];
//    headBtn.frame = CGRectMake(0, 0, self.frame.size.width, itemH);
//
//    [headBtn addTarget:self action:@selector(chooseMonth:) forControlEvents:UIControlEventTouchUpInside];
//
//    
//    // 2.weekday
//    NSArray *array = @[@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六"];
//    self.weekBg = [[UIView alloc] init];
//    //    weekBg.backgroundColor = [UIColor orangeColor];
//    self.weekBg.frame = CGRectMake(0, itemH, DEF_SCREEN_WIDTH, itemH);
//    [self addSubview:self.weekBg];
//    
//    for (int i = 0; i < 7; i++) {
//        UILabel *week = [[UILabel alloc] init];
//        week.text     = array[i];
//        //        week.layer.borderWidth = 0.7f;
//        //        week.layer.borderColor =[UIColor grayColor].CGColor;
//        week.textColor = [UIColor colorWithRed:160 / 255.0f green:228 / 255.0f blue:235 / 255.0f alpha:1];
//        week.font     = [UIFont systemFontOfSize:11];
//        week.frame    = CGRectMake(itemW * i, 0, itemW, itemH);
//        week.textAlignment   = NSTextAlignmentCenter;
//        week.backgroundColor = [UIColor clearColor];
//        [self.weekBg addSubview:week];
//    }
//    
//
////    self.arrayOfData = @[@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六",@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六",@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六",@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六",@"周日", @"周一", @"周二", @"周三", @"周四", @"周五", @"周六",@"周日", @"周一", @"周二", @"周三",
//    
//    
//    for (int i = 0; i < self.arrayOfData.count; i++) {
//        int x = (i % 7) * itemW ;
//        int y = (i / 7) * itemH + CGRectGetMaxY(self.weekBg.frame);
//        
//        self.dayButton =[[UIButton alloc] init];
//        [self addSubview:self.dayButton];
//        for (NSString *str in self.arrayOfData) {
//            
//            self.dayButton.titleLabel.text = str;
//            
//        }
//        self.dayButton.frame = CGRectMake(x, y, itemW, itemH);
//        //     dayButton.titleLabel.font = [UIFont systemFontOfSize:11.0];
//        self.dayButton.titleLabel.textAlignment = NSTextAlignmentCenter;
//        self.dayButton.layer.cornerRadius = 0;
//        self.dayButton.titleLabel.font = [UIFont systemFontOfSize:11];
//
//        [self.dayButton addTarget:self action:@selector(logDate:) forControlEvents:UIControlEventTouchUpInside];
////        [self.dayButton setTitle:self.arrayOfData[i] forState:UIControlStateNormal];
//        [self.dayButton setTitleColor:getColor(@"cccccc") forState:UIControlStateNormal];
//
//       
//    }

    
    // Initialization code
}
//- (UIColor *)weekDaysColor {
//    if (!_weekDaysColor) {
//        _weekDaysColor = [UIColor lightGrayColor];
//    }
//    return _weekDaysColor;
//}
//-(void)logDate:(UIButton *)dayBtn{
//
//    if (self.block) {
//        self.block(dayBtn);
//        
//    }
//
//}
//
//- (void)callBackEditBlock:(EditBlock)block{
//    self.block = block;
//}
//- (NSArray *)arrayOfData {
//    if (!_arrayOfData) {
//        _arrayOfData = [NSMutableArray array];
//    }
//    return _arrayOfData;
//}
//#pragma mark - chooseMonth
//- (void)chooseMonth:(UIButton *)button {
//    //下期版本
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
